#ifndef DEMO13_H
#define DEMO13_H
#include "demo12.h"
#include <iostream>
#include <string>
using namespace std;
class demo13_inherit : public demo12_disc
{
public:
    demo13_inherit() = default;
    demo13_inherit(const string &book, double price, size_t qty, double disc) : demo12_disc(book, price, qty, disc) {}
    double net_price(size_t) const override;
};
class demo13_2 : private demo12_disc
{
    using demo12_disc::net_price;
};

#endif // !DEMO12_H